const mongoose = require('mongoose')
const Schema = mongoose.Schema
const productType = {
    userId: String,
    title: String,
    introduction: String,
    detail: String,
    cover: String,   //封面
    editTime: Date
}

const ProductModel = mongoose.model('product', new Schema(productType))

module.exports = ProductModel 
